<template>
  <div>
    <!-- 轮播图区域 -->
    <swiper :lunbotuList="lunboList" :isfull = "true"></swiper>
    <!-- 六宫格部分 -->
    <ul class="mui-table-view mui-grid-view mui-grid-9">
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/newsList">
          <img src="../../imgs/news.png" alt="">
          <div class="mui-media-body">新闻资讯</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/photolist">
          <img src="../../imgs/图片.png" alt="">
          <div class="mui-media-body">图片分享</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <router-link to="/home/goodslist">
          <img src="../../imgs/85show_购买_fill.png" alt="">
          <div class="mui-media-body">商品购买</div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
           <img src="../../imgs/留言.png" alt="">
          <div class="mui-media-body">留言反馈</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
          <img src="../../imgs/视频.png" alt="">
          <div class="mui-media-body">视频专区</div>
        </a>
      </li>
      <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
        <a href="#">
          <img src="../../imgs/联系我们.png" alt="">
          <div class="mui-media-body">联系我们</div>
        </a>
      </li>
    </ul>
  </div>
</template>
<script>
import { Toast } from 'mint-ui'
import swiper from '../subcomponents/swiper.vue'
export default {
  data () {
    return {
      lunboList: []
    }
  },
  created () {
    this.getLunbo()
  },
  methods: {
    getLunbo () {
      this.$http
        .get('api/getlunbo')
        .then(result => {
          if (result.body.status === 0) {
            this.lunboList = result.body.message
            // Toast('加载成功。。')
          } else {
            Toast('获取失败。。')
          }
        })
    }
  },
  components: {
    swiper
  }
}
</script>
<style lang = 'css' scoped >
.mui-grid-view.mui-grid-9{
  background-color: white;
}
.mui-grid-view.mui-grid-9 .mui-table-view-cell{
  border: none ;
}
.mui-grid-view.mui-grid-9 img{
  width: 50px;
  height: 50px;
}
.mui-table-view.mui-grid-view .mui-table-view-cell .mui-media-body{
  font-size: 10px ;
}
</style>
